package com.donfu.system.service.house.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.donfu.system.mapper.house.HouseDiaryMapper;
import com.donfu.system.domain.house.HouseDiary;
import com.donfu.system.service.house.IHouseDiaryService;

/**
 * 新居日志Service业务层处理
 * 
 * @author donfu
 * @date 2021-12-01
 */
@Service
public class HouseDiaryServiceImpl implements IHouseDiaryService 
{
    @Autowired
    private HouseDiaryMapper houseDiaryMapper;

    /**
     * 查询新居日志
     * 
     * @param id 新居日志主键
     * @return 新居日志
     */
    @Override
    public HouseDiary selectHouseDiaryById(Long id)
    {
        return houseDiaryMapper.selectHouseDiaryById(id);
    }

    /**
     * 查询新居日志列表
     * 
     * @param houseDiary 新居日志
     * @return 新居日志
     */
    @Override
    public List<HouseDiary> selectHouseDiaryList(HouseDiary houseDiary)
    {
        return houseDiaryMapper.selectHouseDiaryList(houseDiary);
    }

    /**
     * 新增新居日志
     * 
     * @param houseDiary 新居日志
     * @return 结果
     */
    @Override
    public int insertHouseDiary(HouseDiary houseDiary)
    {
        return houseDiaryMapper.insertHouseDiary(houseDiary);
    }

    /**
     * 修改新居日志
     * 
     * @param houseDiary 新居日志
     * @return 结果
     */
    @Override
    public int updateHouseDiary(HouseDiary houseDiary)
    {
        return houseDiaryMapper.updateHouseDiary(houseDiary);
    }

    /**
     * 批量删除新居日志
     * 
     * @param ids 需要删除的新居日志主键
     * @return 结果
     */
    @Override
    public int deleteHouseDiaryByIds(Long[] ids)
    {
        return houseDiaryMapper.deleteHouseDiaryByIds(ids);
    }

    /**
     * 删除新居日志信息
     * 
     * @param id 新居日志主键
     * @return 结果
     */
    @Override
    public int deleteHouseDiaryById(Long id)
    {
        return houseDiaryMapper.deleteHouseDiaryById(id);
    }
}
